
package com.contactportal.tags;

import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;
import net.tanesha.recaptcha.ReCaptcha;
import net.tanesha.recaptcha.ReCaptchaFactory;


public class SecurityCheckUI extends SimpleTagSupport {

    @Override
    public void doTag() throws JspException {
        JspWriter out = getJspContext().getOut();
        
        try {
                 ReCaptcha c = ReCaptchaFactory.newReCaptcha("6LcqNsoSAAAAAAOEYdPdOujVg4SLCdJcKaZyhsfs", "6LcqNsoSAAAAAKlfg9WHv2kJkEwtwLBL6M_LIqyZ", false);
                 out.print(c.createRecaptchaHtml(null, null));
                 
            } catch (java.io.IOException ex) {
            throw new JspException("Error in SecurityCheck tag", ex);
        }
    }
}
